/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.mphokazi.designpatterns.part1.creational.AbstractFactoryMethod;

import za.ac.cput.assigment.AbstractFactoryMethod.Animal;
import za.ac.cput.assigment.AbstractFactoryMethod.SpeciesFactory;

/**
 *
 * @author user
 */
public class MammalFactory extends SpeciesFactory {

    @Override
    public Animal getAnimal(String type) {
        if("dog".equals(type))
        {
            return new Dog1();
        }else{return new Cat();}
    }
    
}
